import request from '../utils/request.js'

export function AreaTree(params) {
  return request({
    url: 'http://localhost:8080/SysArea/RootArea',
    method: 'get',
    params
  })
}

export function insertArea(params) {
  return request({
    url: 'http://localhost:8080/SysArea/add',
    method: 'post',
    params
  })
}

export function updateArea(params) {
  return request({
    url: 'http://localhost:8080/SysArea/update',
    method: 'post',
    params
  })
}
